
<!--头部的公共模版-->
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/headFoot.css"/>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/fonts.css"/>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/toTop.css"/>
		<script src="./Public/Home/js/easing.js" type="text/javascript" charset="utf-8"></script>
		<script src="./Public/Home/js/jquery.ui.totop.js" type="text/javascript" charset="utf-8"></script>
		
	</head>
	<body>
				
<!--weixin-->
<div class="weiXin" style="cursor: pointer; display:block;" title="微信">
	<img src="./Public/Home/images/bigweixin.jpg" class="openWeiXin" id="toTopHover"/>
</div>
<script type="text/javascript">
	$(function(){
		$('.weiXin').hover(function(){
			$('.openWeiXin').css('display','block');
		},function(){
			$('.openWeiXin').css('display','none');
		})
	})
</script>
<!--END weixin-->

<!--toTop-->
<div id="toTop" style="cursor: pointer; display: block;" title="回到顶部">
	<span id="toTopHover" style="opacity: 0;"></span>
</div>
<!--END toTop-->



<script type="text/javascript">
	//名字鼠标移入名字效果
	$(function(){
		$('.login span').mousemove(function(){//鼠标移入事件
			$('.login span .xiala').css('display','block');
		});
		$('.login span').mouseleave(function(){//鼠标移出事件
			$('.login span .xiala').css('display','none');
		});
	})
	
</script>
<!--head-->
<div id="head">
	<div class="head_center">
		
		<?php if(!isset($_SESSION['account'])): ?>
			<!--还没登录-->
			<div class="topNo">
				<div class="left">
					<a href="login.html" >登录</a>
					<a href="register.html" >注册</a>
				</div>
				<span class="logo"><a href="../personal_blog/index.php" target="_blank"><img src="./Public/Home/images/logo.png" alt="" style="margin-top: 18px;"/></a></span>
				<div class="right">			
					<i class="iconfont">&#xe601;</i>
					<a href="cart.html">购物车<span>0</span>件</a>
				</div>
			</div>
		<?php else: ?>
			<?php 
			$num = 0;
				if(isset($_SESSION['cart']['goods'])){
					foreach ($_SESSION['cart']['goods'] as $k => $v) {
						$num = $v['num']+$num; 
					}
				}else{
					$num = 0;
				}
 			?>
		<!--登录成功后-->
			<div class="topYes">
				<div class="login">
					<a href="myCenter.html" class="pic">
						<img src="./Public/Home/images/3_small.jpg"/>
					</a>
					<span><?php echo $_SESSION['username']?>
						<ul class="xiala">
							<li class="img"></li>
							<li><a href="myCenter.html">个人中心</a></li>
							<li><a href="<?php echo U('Member/out')?>">退出</a></li>
						</ul>
					</span>
				</div>
				<span class="logo"><a href="../personal_blog/index.php" target="_blank"><img src="./Public/Home/images/logo.png" alt="" style="margin-top: 18px;"/></a></span>
				<div class="right">			
					<i class="iconfont">&#xe601;</i>
					<a href="cart.html">购物车<span><?php echo $num?></span>件</a>
				</div>
			</div>
		<?php endif ?>
		
		<div class="bottom">
			<div class="search">
				<!--<form action="" method="">
					<input type="text" placeholder="请输入要搜索的关键词"/>
					<a href="#"><i class="iconfont">&#xe6a4;</i></a>
				</form>-->
			</div>
			<ul class="left">
				<li><a href="index.html"><i class="iconfont">&#xe64a;</i></a></li>
				<li><a href="market.html">市集</a></li>
				<li><a href="news_<?php echo 'time_0'?>.html">新品</a></li>
				<li><a href="hot_<?php echo 'click_0'?>.html">热卖</a></li>
				<li><a href="rank_<?php echo 'stock_0'?>.html">闪购</a></li>
			</ul>
		</div>	
	</div>
</div>
<style type="text/css">
	#head .head_center .bottom .left li a:hover{
		color:#54D6D6;
	}
</style>